package reese.javaLiGang16;

import java.util.ArrayList;
import java.util.List;

/**
 * ***********************************************************
 *
 * @类名 : reese.javaLiGang16.类名
 * @DESCRIPTION : 这家伙太懒啥都没写
 * @AUTHOR :  一个风情万种的男子
 * @DATE : 2016/6/16
 * ***********************************************************
 */

class Apple
{
    double weight;
    public Apple(double weight)
    {
        this.weight = weight;
    }
}
public class ListTest {
    public static void main(String[] args) {
        Apple t1 = new Apple(2.2);
        Apple t2 = new Apple(1.8);
        List<Apple> list = new ArrayList<Apple>(4);

        list.add(t1);
        list.add(t2);
        System.out.println(list.get(0)==t1);
        System.out.println(list.get(1)==t2);

    }
}
